﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class SanBay_BUS
    {
        public static List<SanBay_DTO> GetSanBayList()
        {
            List<SanBay_DTO> listSanBay = new List<SanBay_DTO>();
            try
            {
                SanBay_DAO sanbayDAO = new SanBay_DAO();
                listSanBay = sanbayDAO.GetSanBayList();
            }
            catch (System.Exception)
            {

            }
            return listSanBay;
        }

        public static SanBay_DTO GetSanBayDetails(string maSanBay)
        {
            SanBay_DTO sanbayDTO = new SanBay_DTO();
            try
            {
                SanBay_DAO sanbayDAO = new SanBay_DAO();
                sanbayDTO = sanbayDAO.GetSanBayDetails(maSanBay);
            }
            catch (System.Exception)
            {
            }
            return sanbayDTO;
        }

        public static string GetTenSanBay(string MaSanBay)
        {
            return SanBay_DAO.GetTenSanBay(MaSanBay);
        }
       
    }
}
